package cn.ruituo.adv2;

public class WrapTest {
    public static void main(String[] args) {
        //int 4个字节
        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);
        System.out.println(Long.MAX_VALUE);
        Integer i = -5;
        byte b = i.byteValue();
        System.out.println("byte:" + b);
        String s = Integer.toBinaryString(i);
        System.out.println(s);
        int a = 14;
        int bb = ~a;
        System.out.println(bb);

        boolean ff = true | false;
        //补码
        int k = -14;
        System.out.println(Integer.toBinaryString(k));
        int k2 = k >> 2;
        System.out.println("k2=" + k2);
        int k3 = k >>> 3;//无符号右移
        int k4 = k << 2;
    }
}
